package cn.bgs.service.impl;

import cn.bgs.dao.GradeMapper;
import cn.bgs.pojo.Grade;
import cn.bgs.pojo.VoAll.GradeVo;
import cn.bgs.pojo.Student;
import cn.bgs.service.GradeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author Mr.JIA
 * @DATE 2021/8/2 0002 8:38
 * @PROJECT_NAME mybatis_phoenix
 * @PACKAGE_NAME cn.bgs.service.impl
 */
@Service
public class GradeServiceImpl implements GradeService {

    @Autowired
    private GradeMapper gradeMapper;

    @Override
    public int deleteByPrimaryKey(Integer pkId) {
        return 0;
    }

    @Override
    public int insert(Grade record) {
        return 0;
    }

    @Override
    public int insertSelective(Grade record) {
        return 0;
    }

    @Override
    public Grade selectByPrimaryKey(Integer pkId) {
        return gradeMapper.selectByPrimaryKey(pkId);
    }

    @Override
    public int updateByPrimaryKeySelective(Grade record) {
        return 0;
    }

    @Override
    public int updateByPrimaryKey(Grade record) {
        return 0;
    }

    @Override
    public List<Student> findAllGrade(GradeVo vo) {
        return gradeMapper.findAllGrade(vo);
    }

    @Override
    public Integer addGrade(Grade gra) {
        return gradeMapper.addGrade(gra);
    }

    @Override
    public Integer delGrade(Integer pkId) {
        return gradeMapper.delGrade(pkId);
    }

    @Override
    public Integer updGrade(Grade gra) {
        return gradeMapper.updGrade(gra);
    }
}
